package electricity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import electricity.domain.EquipmentRepair;
import electricity.domain.FaultAnalysis;
import electricity.dto.DeviceQueryDTO;
import electricity.vo.FaultTypeVo;

import java.util.List;

/**
* @author haoyi
* @description 针对表【fault_analysis(故障深度分析表)】的数据库操作Mapper
* @createDate 2025-07-18 13:38:03
* @Entity electricity.domain.FaultAnalysis
*/
public interface FaultAnalysisMapper extends BaseMapper<FaultAnalysis> {

    int deleteByPrimaryKey(Long id);

    int insert(FaultAnalysis record);

    int insertSelective(FaultAnalysis record);

    FaultAnalysis selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FaultAnalysis record);

    int updateByPrimaryKey(FaultAnalysis record);


    Page<FaultAnalysis> pageQuery(DeviceQueryDTO deviceQueryDTO);

    List<FaultTypeVo> typeDistribution();

}
